/*
 * emulate.h
 *
 *  Created on: Jan 26, 2013
 *      Author: anhpham
 */


#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif // HAVE_CONFIG_H

#include <unistd.h>
#include <stdlib.h>

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>

#include <nfc/nfc.h>

#include <nfc/nfc-messages.h>
#include "nfc-utils.h"

#define MAX_FRAME_LEN 264
#define MAX_PDU_LEN 256
#define SYMBOL_PARAM_fISO14443_4_PICC   0x20
#define CMD_SELECT 0xA4

bool hex_cmp(unsigned char cmdApdu1[], size_t szcmdApdu1, unsigned char cmdApdu2[], size_t szcmdApdu2);
int produceNdefFromURI(char* uri, unsigned char* Ndef);
int produceNdefFromSMS(char* phoneNumber, char* textMessage, unsigned char* Ndef);

